const detailModel = require("../models/detail_model")
const Result = require("../beans/result")
// 获取热门电视剧
function detailitem(value,collectionName, msg, callback) {

    detailModel.detail(value,collectionName, (err, data) => {
        if (err) {
            callback(new Result(err, null, msg[0], 401))
        } else {
            callback(new Result(null, ...data, msg[1], 200))
        }
    })
    
}
module.exports={
    detailitem
}